package pers.whj.rpc.transport;

import java.net.Socket;

/**
 * 用于处理TCP连接的线程
 */
public class TCPThread extends Thread {
    protected final Socket socket;

    public TCPThread(Socket socket) {
        this.socket = socket;
    }

    /**
     * 上次处理请求的时间序号
     */
    private long lastNumber;

    public long getLastNumber() {
        return lastNumber;
    }

    public void setLastNumber(long lastNumber) {
        this.lastNumber = lastNumber;
    }
}
